package com.billing.web.controller;

import org.apache.commons.lang.StringUtils;

public enum IdentityEnum {

	insertClockin("INSERTCLOCKIN"),//APP打卡
	getUserList("GETUSERLIST"),//APP获取审批人或抄送人列表信息
	getApproveDetail("GETAPPROVEDETAIL"),//APP获取审批详情信息
	getUserDetail("GETUSERDETAIL"),//APP获取人员信息
	getUserUnits("GETUSERUNITS"),//App获取用户加班单位信息
	getMonthlycalendar("GETMONTHLYCALENDAR"),//APP获取月历信息
	getYearMonthDay("GETYEARMONTHDAY"),//APP根据年月日获取打卡信息
	showCrmCustomerList("SHOWCRMCUSTOMERLIST"),//APP查询CRM客户列表
	showCrmCustomer("SHOWCRMCUSTOMER"),//APP查询CRM客户详情
	showCrmLinkmanList("SHOWCRMLINKMANLIST"),//APP查询CRM联系人列表
	showCrmLinkman("SHOWCRMLINKMAN"),//APP查询CRM联系人详情
	addCrmCustomer("ADDCRMCUSTOMER"),//APP新增CRM客户
	addCrmLinkman("ADDCRMLINKMAN"),//APP新增CRM联系人
	showCrmContactList("SHOWCRMCONTACTLIST"),//APP CRM跟进记录列表
	addCrmContact("ADDCRMCONTACT"),//APP新增CRM跟进记录
	uploadCard("UPLOADCARD"),//APP名片上传识别
	addCrmLinkmanByCard("ADDCRMLINKMANBYCARD"),//APP名片上传识别保存
	upload("UPLOAD"),//文件上传
	getArchivesData("GETARCHIVESDATA"),//APP获取人员信息
	updateBasicData("UPDATEBASICDATA"),//APP更新基本信息
	updateWorkData("UPDATEWORKDATA"),//APP增加/更新工作经历信息
	getWorkDataByid("GETWORKDATABYID"),//APP按ID查找工作经历信息
	getWork("GETWORK"),//APP我的工作经历
	updatePrivateData("UPDATEPRIVATEDATA"),//APP更新私密信息
	getPrivateByuid("GETPRIVATEBYUID"),//APP按userID查找私密信息
	getPrivateByid("GETPRIVATEBYID"),//APP按ID查找私密信息
	addEmergencycontact("ADDEMERGENCYCONTACT"),//APP增加/更新我的紧急联系人
	getEmergencycontactByid("GETEMERGENCYCONTACTBYID"),//APP按ID查找紧急联系人
	getEmergencycontact("GETEMERGENCYCONTACT"),//APP我的紧急联系人
	getPersonalfilesData("GETPERSONALFILESDATA"),//APP个人档案信息界面
	updateScan("UPDATESCAN"),//APP增加/更新附件信息
	addEducation("ADDEDUCATION"),//APP新增/更新学历保存
	getEducationByid("GETEDUCATIONBYID"),//APP按ID查找学历信息
	getClockin("GETCLOCKIN"),//APP获取打卡信息
	getUserPayReportApp("GETUSERPAYREPORTAPP"),//APP查看薪酬报表信息
	handleApprove("HANDLEAPPROVE"),//APP审批办理
	saveApprove("SAVEAPPROVE"),//APP审批提交
	getApproveList("GETAPPROVELIST"),//APP获取审批列表信息
	mobilelogin("MOBILELOGIN"),//用户登陆
	getMyApproveList("GETMYAPPROVELIST"),//查询APP当前用户相关的审批实例
	ModifyPassword("MODIFYPASSWORD"),//修改密码接口
	companyList("COMPANYLIST"),//公司列表
	switchoverCompany("SWITCHOVERCOMPANY"),//切换公司
	
	getMessagelistApp("GETMESSAGELISTAPP"),//APP查看登录用户详细消息
	getMessageSingleApp("GETMESSAGESINGLEAPP"),//APP查看登录用户单个详细消息
	getConsultationlistApp("GETCONSULTATIONLISTAPP"),//APP查看咨询
	getConsleApp("GETCONSLEAPP"),//APP查询单个咨询详细
	getcommentlistApp("GETCOMMENTLISTAPP"),//APP查看评论
	AddcommentApp("ADDCOMMENTAPP"),//增加评论
	getMessageUnreadApp("GETMESSAGEUNREADAPP");//APP查看登录用户未读消息
	
	
	private String code;
	
	private IdentityEnum(String code) {
		this.code=code;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public static String getIdentityEnum(String code){
	    for(IdentityEnum idEnum : IdentityEnum.values()){
	      if(StringUtils.equals(code, idEnum.toString())){
	        return idEnum.toString();
	      }
	    }
	    return null;
	  }
	
}
